package com.ygqh.baby.service;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgSupplier;

import java.util.Date;
import java.util.List;

public interface YgSupplierService {

    int findCount();

    YgSupplier findById(Long id);

    int deleteSoft(YgSupplier supplier);

    int deleteSoft(Long id);

    int save(YgSupplier ygSupplier);

    int update(YgSupplier ygSupplier);

    int saveOrUpdate(YgSupplier ygSupplier);

    ResultSet<YgSupplier> search(QueryInfo queryInfo, String q);

    int checkSupplierName(String supplierName, Long id);

    List<YgSupplier> find();

    int deleteSoft(Long[] ids);

    int checkLoginName(String loginName);

    YgSupplier findSupplierId(String userName);

    /**
     * 添加/修改商家对账任务
     *
     * @param supplierId
     */
    void updateSupplierScheduleJob(Long supplierId);

    /**
     * 是否需要同步旺店通
     *
     * @param id
     * @return
     */
    boolean isSyncWDT(Long id);

    List<YgSupplier> findListBySupplierName(List<String> supplierNameList);

    List<YgSupplier> findListById(List<Long> idList);

    List<Long> findSupplierIdListWithTrade(Date startDate, Date endDate);
}
